# 广播示例3：实际应用
# 计算每个点到原点的距离
import numpy as np
points = np.array([[1, 2], [3, 4], [5, 6]])
distances = np.sqrt(np.sum(points**2, axis=1))
print("各点到原点距离:", distances)